﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] a = { 10, 54, 64, 48, 78, 75, 15, 69, 12, 60 };
            for (int i = 0; i < a.Length; i++)
            {
                for (int j = 0; j < a.Length - i - 1; j++)
                {
                    if (a[j] > a[j + 1])
                    {
                        int temp = a[j];
                        a[j] = a[j + 1];
                        a[j + 1] = temp;

                    }
                }
            }
            Console.WriteLine("降序后结果为:");
            foreach (int b in a)
            {
                Console.Write(b + "");
            }
            Console.WriteLine();


        }
    }
}
        
       

